#ifndef __DEFINE_H__
#include "cocos2d.h"

USING_NS_CC;

class CCDefine : public  SingleTon<CCDefine>
{
public:
  float Resistance() {return 0;}
  float Distance(CCPoint& pt)
  {
    return sqrt(pt.x*pt.x+pt.y*pt.y);
  }
  float Distance(float x,float y)
  {
    return sqrt(x*x+y*y);
  }
  float Distance(CCPoint& pt1,CCPoint& pt2)
  {
    float x=pt1.x-pt2.x;
    float y=pt1.y-pt2.y;
    return sqrt(x*x+y*y);
  }
  float BallRadius() {return 2;}
  float BallSpeed() {return 120;}
  float Angle(float angle) {while(angle>360) angle-=360; while(angle<0) angle+=360;return angle;}
};

#endif